package com.power.using.mydaggerp.contract.detail;

import com.power.using.mydaggerp.model.bean.zhihu.ZhihuDailyDetailBean;
import com.power.using.mydaggerp.presenter.detail.BaseWebViewLoadPresenter;

import io.reactivex.Observable;


/**
 * Created by 聪明一只哈 on 2019/10/12.
 * Time: 2019/10/12  10:21
 */
public interface ZhihuDetailContract {

    abstract class ZhihuDetailPresenter extends BaseWebViewLoadPresenter<IZhihuDetailModel,IZhihuDetialView> {

        /**
         * 加载日报详情
         * @param id
         */
        public abstract  void loadDailyDetail(String id);
    }



    interface IZhihuDetailModel extends BaseWebViewLoadContract.IBaseWebViewLoadModel{

        /**
         * 获取日报详情
         * @param id 日报id
         * @return
         */
        Observable<ZhihuDailyDetailBean> getDailyDetail(String id);
    }


    interface  IZhihuDetialView extends BaseWebViewLoadContract.IBaseWebViewLoadView{

        /**
         * 显示日报详细内容
         * @param bean
         */
        void showDailyDetail(ZhihuDailyDetailBean bean);
    }
}
